home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 63 6c 61 72 6b |Path: ne|ws.clark|
|00000010| 2e 6e 65 74 21 75 73 65 | 6e 65 74 0a 46 72 6f 6d |.net!use|net.From|
|00000020| 3a 20 79 6f 6d 40 63 6c | 61 72 6b 2e 6e 65 74 20 |: yom@cl|ark.net |
|00000030| 28 79 6f 6d 29 0a 4e 65 | 77 73 67 72 6f 75 70 73 |(yom).Ne|wsgroups|
|00000040| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 0a 53 75 |: comp.l|ang.c.Su|
|00000050| 62 6a 65 63 74 3a 20 52 | 65 3a 20 73 79 73 74 65 |bject: R|e: syste|
|00000060| 6d 28 29 20 26 20 65 72 | 72 6f 72 20 64 65 74 65 |m() & er|ror dete|
|00000070| 63 74 69 6f 6e 0a 44 61 | 74 65 3a 20 32 39 20 46 |ction.Da|te: 29 F|
|00000080| 65 62 20 31 39 39 36 20 | 30 33 3a 33 32 3a 30 35 |eb 1996 |03:32:05|
|00000090| 20 47 4d 54 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f | GMT.Org|anizatio|
|000000a0| 6e 3a 20 48 75 67 68 65 | 73 20 49 6e 66 6f 72 6d |n: Hughe|s Inform|
|000000b0| 61 74 69 6f 6e 20 54 65 | 63 68 6e 6f 6c 6f 67 79 |ation Te|chnology|
|000000c0| 20 43 6f 72 70 6f 72 61 | 74 69 6f 6e 0a 4d 65 73 | Corpora|tion.Mes|
|000000d0| 73 61 67 65 2d 49 44 3a | 20 3c 34 68 33 36 6e 6c |sage-ID:| <4h36nl|
|000000e0| 24 36 67 30 40 63 6c 61 | 72 6b 6e 65 74 2e 63 6c |$6g0@cla|rknet.cl|
|000000f0| 61 72 6b 2e 6e 65 74 3e | 0a 52 65 66 65 72 65 6e |ark.net>|.Referen|
|00000100| 63 65 73 3a 20 3c 34 67 | 74 32 34 67 24 64 62 61 |ces: <4g|t24g$dba|
|00000110| 40 6e 63 61 72 2e 75 63 | 61 72 2e 65 64 75 3e 20 |@ncar.uc|ar.edu> |
|00000120| 3c 34 67 74 37 66 34 49 | 4e 4e 74 31 6a 40 6b 65 |<4gt7f4I|NNt1j@ke|
|00000130| 61 74 73 2e 75 67 72 61 | 64 2e 63 73 2e 75 62 63 |ats.ugra|d.cs.ubc|
|00000140| 2e 63 61 3e 0a 52 65 70 | 6c 79 2d 54 6f 3a 20 73 |.ca>.Rep|ly-To: s|
|00000150| 79 6f 6d 40 65 6f 73 2e | 68 69 74 63 2e 63 6f 6d |yom@eos.|hitc.com|
|00000160| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000170| 73 74 3a 20 79 6f 6d 2e | 63 6c 61 72 6b 2e 6e 65 |st: yom.|clark.ne|
|00000180| 74 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |t.Mime-V|ersion: |
|00000190| 31 2e 30 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |1.0.Cont|ent-Type|
|000001a0| 3a 20 54 65 78 74 2f 50 | 6c 61 69 6e 3b 20 63 68 |: Text/P|lain; ch|
|000001b0| 61 72 73 65 74 3d 55 53 | 2d 41 53 43 49 49 0a 58 |arset=US|-ASCII.X|
|000001c0| 2d 4e 65 77 73 72 65 61 | 64 65 72 3a 20 57 69 6e |-Newsrea|der: Win|
|000001d0| 56 4e 20 30 2e 39 39 2e | 37 0a 0a 54 6f 20 75 73 |VN 0.99.|7..To us|
|000001e0| 65 20 22 65 78 65 63 22 | 20 66 61 6d 69 6c 79 20 |e "exec"| family |
|000001f0| 6f 66 20 66 75 6e 63 74 | 69 6f 6e 73 2c 20 74 68 |of funct|ions, th|
|00000200| 65 20 70 61 72 65 6e 74 | 20 70 72 6f 63 65 73 73 |e parent| process|
|00000210| 20 6d 75 73 74 20 66 6f | 72 6b 20 61 20 63 68 69 | must fo|rk a chi|
|00000220| 6c 64 0a 70 72 6f 63 65 | 73 73 20 74 6f 20 65 78 |ld.proce|ss to ex|
|00000230| 65 63 75 74 65 20 74 68 | 65 20 63 6f 6d 6d 61 6e |ecute th|e comman|
|00000240| 64 20 28 73 69 6e 63 65 | 20 74 68 65 73 65 20 66 |d (since| these f|
|00000250| 75 6e 63 74 69 6f 6e 73 | 20 6f 76 65 72 6c 61 79 |unctions| overlay|
|00000260| 20 74 68 65 0a 65 78 69 | 73 74 69 6e 67 20 70 72 | the.exi|sting pr|
|00000270| 6f 67 72 61 6d 29 20 61 | 6e 64 20 77 61 69 74 20 |ogram) a|nd wait |
|00000280| 66 6f 72 20 61 20 73 69 | 67 6e 61 6c 20 66 72 6f |for a si|gnal fro|
|00000290| 6d 20 74 68 65 20 74 65 | 72 6d 69 6e 61 74 69 6e |m the te|rminatin|
|000002a0| 67 20 63 68 69 6c 64 2e | 20 20 49 66 0a 74 68 69 |g child.| If.thi|
|000002b0| 73 20 73 65 65 6d 73 20 | 6c 69 6b 65 20 6f 76 65 |s seems |like ove|
|000002c0| 72 6b 69 6c 6c 20 61 6e | 64 20 79 6f 75 20 77 61 |rkill an|d you wa|
|000002d0| 6e 74 20 74 6f 20 75 73 | 65 20 74 68 65 20 73 79 |nt to us|e the sy|
|000002e0| 73 74 65 6d 28 29 20 63 | 61 6c 6c 20 0a 69 6e 74 |stem() c|all .int|
|000002f0| 65 72 66 61 63 65 2c 20 | 79 6f 75 20 63 6f 75 6c |erface, |you coul|
|00000300| 64 20 63 68 65 63 6b 20 | 74 68 65 20 72 65 74 75 |d check |the retu|
|00000310| 72 6e 20 73 74 61 74 75 | 73 20 75 73 69 6e 67 20 |rn statu|s using |
|00000320| 74 68 65 20 57 45 58 49 | 54 53 54 41 54 55 53 0a |the WEXI|TSTATUS.|
|00000330| 6d 61 63 72 6f 20 64 65 | 66 69 6e 65 64 20 69 6e |macro de|fined in|
|00000340| 20 77 61 69 74 2e 68 20 | 68 65 61 64 65 72 20 66 | wait.h |header f|
|00000350| 69 6c 65 2e 0a 0a 20 20 | 20 20 69 66 20 28 57 45 |ile... | if (WE|
|00000360| 58 49 54 53 54 41 54 55 | 53 28 73 79 73 74 65 6d |XITSTATU|S(system|
|00000370| 28 22 2e 2e 2e 22 29 29 | 20 21 3d 20 30 29 0a 20 |("..."))| != 0). |
|00000380| 20 20 20 20 20 20 20 2f | 2a 20 70 72 69 6e 74 20 | /|* print |
|00000390| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 20 2a 2f |error me|ssage */|
|000003a0| 0a 0a 53 6f 6e 67 20 28 | 79 6f 6d 40 63 6c 61 72 |..Song (|yom@clar|
|000003b0| 6b 2e 6e 65 74 29 20 20 | 20 20 20 0a 0a 0a 49 6e |k.net) | ...In|
|000003c0| 20 61 72 74 69 63 6c 65 | 20 3c 34 67 74 37 66 34 | article| <4gt7f4|
|000003d0| 49 4e 4e 74 31 6a 40 6b | 65 61 74 73 2e 75 67 72 |INNt1j@k|eats.ugr|
|000003e0| 61 64 2e 63 73 2e 75 62 | 63 2e 63 61 3e 2c 20 63 |ad.cs.ub|c.ca>, c|
|000003f0| 32 61 31 39 32 40 75 67 | 72 61 64 2e 63 73 2e 75 |2a192@ug|rad.cs.u|
|00000400| 62 63 2e 63 61 20 0a 73 | 61 79 73 2e 2e 2e 0a 3e |bc.ca .s|ays....>|
|00000410| 0a 3e 49 6e 20 61 72 74 | 69 63 6c 65 20 3c 34 67 |.>In art|icle <4g|
|00000420| 74 32 34 67 24 64 62 61 | 40 6e 63 61 72 2e 75 63 |t24g$dba|@ncar.uc|
|00000430| 61 72 2e 65 64 75 3e 2c | 0a 3e 4a 61 6d 65 73 20 |ar.edu>,|.>James |
|00000440| 41 64 61 6d 73 20 3c 6a | 61 64 61 6d 73 40 73 61 |Adams <j|adams@sa|
|00000450| 67 65 2e 63 67 64 2e 75 | 63 61 72 2e 65 64 75 3e |ge.cgd.u|car.edu>|
|00000460| 20 77 72 6f 74 65 3a 0a | 3e 20 3e 48 65 6c 6c 6f | wrote:.|> >Hello|
|00000470| 2c 0a 3e 20 3e 0a 3e 20 | 3e 20 20 20 20 20 20 20 |,.> >.> |> |
|00000480| 20 49 20 61 6d 20 61 74 | 74 65 6d 70 74 69 6e 67 | I am at|tempting|
|00000490| 20 74 6f 20 75 73 65 20 | 74 68 65 20 73 79 73 74 | to use |the syst|
|000004a0| 65 6d 28 29 20 63 61 6c | 6c 20 69 6e 20 6f 72 64 |em() cal|l in ord|
|000004b0| 65 72 20 74 6f 20 68 61 | 76 65 20 61 0a 3e 20 3e |er to ha|ve a.> >|
|000004c0| 75 73 65 72 2d 73 70 65 | 63 69 66 69 65 64 20 63 |user-spe|cified c|
|000004d0| 6f 6d 6d 61 6e 64 20 65 | 78 65 63 75 74 65 20 69 |ommand e|xecute i|
|000004e0| 6e 20 6d 79 20 70 72 6f | 67 72 61 6d 2e 0a 3e 20 |n my pro|gram..> |
|000004f0| 3e 0a 3e 20 3e 20 20 20 | 20 20 20 20 20 49 20 61 |>.> > | I a|
|00000500| 6d 20 77 6f 6e 64 65 72 | 69 6e 67 20 68 6f 77 20 |m wonder|ing how |
|00000510| 49 20 63 61 6e 20 63 68 | 65 63 6b 20 77 68 65 74 |I can ch|eck whet|
|00000520| 68 65 72 20 6f 72 20 6e | 6f 74 20 74 68 65 20 63 |her or n|ot the c|
|00000530| 6f 6d 6d 61 6e 64 20 0a | 68 61 73 0a 3e 20 3e 63 |ommand .|has.> >c|
|00000540| 6f 6d 70 6c 65 74 65 64 | 20 73 75 63 63 65 73 73 |ompleted| success|
|00000550| 66 75 6c 6c 79 20 3f 20 | 20 49 20 64 6f 6e 27 74 |fully ? | I don't|
|00000560| 20 77 61 6e 74 20 74 68 | 65 20 70 72 6f 67 72 61 | want th|e progra|
|00000570| 6d 20 74 6f 20 63 6f 6e | 74 69 6e 75 65 20 69 66 |m to con|tinue if|
|00000580| 20 0a 74 68 65 0a 3e 20 | 3e 63 61 6c 6c 20 49 20 | .the.> |>call I |
|00000590| 6d 61 6b 65 20 66 72 6f | 6d 20 73 79 73 74 65 6d |make fro|m system|
|000005a0| 28 29 20 70 72 6f 64 75 | 63 65 73 20 73 6f 6d 65 |() produ|ces some|
|000005b0| 20 73 6f 72 74 20 6f 66 | 20 65 72 72 6f 72 2e 20 | sort of| error. |
|000005c0| 20 49 27 64 20 6c 69 6b | 65 20 74 6f 20 0a 62 65 | I'd lik|e to .be|
|000005d0| 0a 3e 20 3e 61 62 6c 65 | 20 74 6f 20 64 6f 20 73 |.> >able| to do s|
|000005e0| 6f 6d 65 74 68 69 6e 67 | 20 6c 69 6b 65 20 74 68 |omething| like th|
|000005f0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 3a 0a 3e 20 3e |e follow|ing:.> >|
|00000600| 0a 3e 20 3e 20 20 20 20 | 20 20 20 20 72 65 73 75 |.> > | resu|
|00000610| 6c 74 20 3d 20 73 79 73 | 74 65 6d 28 63 6f 6d 6d |lt = sys|tem(comm|
|00000620| 61 6e 64 29 3b 0a 3e 20 | 3e 20 20 20 20 20 20 20 |and);.> |> |
|00000630| 20 69 66 20 28 72 65 73 | 75 6c 74 20 3d 3d 20 45 | if (res|ult == E|
|00000640| 52 52 4f 52 29 0a 3e 20 | 3e 20 20 20 20 20 20 20 |RROR).> |> |
|00000650| 20 20 20 65 78 69 74 28 | 30 29 3b 0a 3e 20 3e 0a | exit(|0);.> >.|
|00000660| 3e 20 3e 49 73 20 74 68 | 65 72 65 20 61 6e 79 77 |> >Is th|ere anyw|
|00000670| 61 79 20 74 6f 20 64 6f | 20 74 68 69 73 20 3f 20 |ay to do| this ? |
|00000680| 20 53 68 6f 75 6c 64 20 | 49 20 62 65 20 75 73 69 | Should |I be usi|
|00000690| 6e 67 20 73 6f 6d 65 74 | 68 69 6e 67 20 6f 74 68 |ng somet|hing oth|
|000006a0| 65 72 20 74 68 61 6e 0a | 3e 20 3e 73 79 73 74 65 |er than.|> >syste|
|000006b0| 6d 28 29 20 3f 0a 3e 0a | 3e 54 72 79 20 6f 6e 65 |m() ?.>.|>Try one|
|000006c0| 20 6f 66 20 74 68 65 20 | 6d 65 6d 62 65 72 20 6f | of the |member o|
|000006d0| 66 20 74 68 65 20 60 60 | 65 78 65 63 27 27 20 66 |f the ``|exec'' f|
|000006e0| 61 6d 69 6c 79 20 6f 66 | 20 66 75 6e 63 74 69 6f |amily of| functio|
|000006f0| 6e 73 2e 20 54 68 65 73 | 65 20 61 72 65 20 0a 64 |ns. Thes|e are .d|
|00000700| 65 66 69 6e 65 64 20 62 | 79 0a 3e 74 68 65 20 50 |efined b|y.>the P|
|00000710| 4f 53 49 58 2e 31 20 73 | 74 61 6e 64 61 72 64 2c |OSIX.1 s|tandard,|
|00000720| 20 6e 6f 74 20 49 53 4f | 2f 41 4e 53 49 20 43 2e | not ISO|/ANSI C.|
|00000730| 0a 3e 0a 3e 45 78 65 63 | 20 6c 65 74 73 20 79 6f |.>.>Exec| lets yo|
|00000740| 75 20 67 65 74 20 74 68 | 65 20 72 65 74 75 72 6e |u get th|e return|
|00000750| 20 76 61 6c 75 65 2e 20 | 49 74 20 69 73 20 61 6c | value. |It is al|
|00000760| 73 6f 20 6d 6f 72 65 20 | 73 65 63 75 72 65 2c 20 |so more |secure, |
|00000770| 73 69 6e 63 65 20 0a 73 | 79 73 74 65 6d 28 29 20 |since .s|ystem() |
|00000780| 63 61 6e 0a 3e 62 65 20 | 65 78 70 6c 6f 69 74 65 |can.>be |exploite|
|00000790| 64 20 69 6e 20 77 61 79 | 73 20 77 68 69 63 68 20 |d in way|s which |
|000007a0| 76 69 6f 6c 61 74 65 20 | 73 79 73 74 65 6d 20 73 |violate |system s|
|000007b0| 65 63 75 72 69 74 79 2e | 20 20 49 66 20 79 6f 75 |ecurity.| If you|
|000007c0| 20 61 72 65 20 0a 70 72 | 6f 67 72 61 6d 6d 69 6e | are .pr|ogrammin|
|000007d0| 67 20 6f 6e 0a 3e 61 20 | 55 4e 49 58 20 73 79 73 |g on.>a |UNIX sys|
|000007e0| 74 65 6d 2c 20 67 6f 20 | 74 6f 20 63 6f 6d 70 2e |tem, go |to comp.|
|000007f0| 75 6e 69 78 2e 70 72 6f | 67 72 61 6d 6d 65 72 20 |unix.pro|grammer |
|00000800| 61 6e 64 20 72 65 61 64 | 20 74 68 65 69 72 20 46 |and read| their F|
|00000810| 41 51 27 73 2e 20 54 68 | 69 73 20 0a 69 73 20 6c |AQ's. Th|is .is l|
|00000820| 69 6b 65 6c 79 0a 3e 74 | 6f 20 62 65 20 61 64 64 |ikely.>t|o be add|
|00000830| 72 65 73 73 65 64 2e 0a | 3e 2d 2d 20 0a 3e 0a 0a |ressed..|>-- .>..|
+--------+-------------------------+-------------------------+--------+--------+